// 查询策略交易登记簿列表
import request from '@/utils/request'

export function listStrategyTradebook(query) {
  return request({
    url: '/kylin/strategyTradebook/list',
    method: 'get',
    params: query
  })
}

// 查询策略交易登记簿详细
export function getStrategyTradebook(tradebookId) {
  return request({
    url: '/kylin/strategyTradebook/' + tradebookId,
    method: 'get'
  })
}

// 新增策略交易登记簿
export function addStrategyTradebook(data) {
  return request({
    url: '/kylin/strategyTradebook',
    method: 'post',
    data: data
  })
}

// 修改策略交易登记簿
export function updateStrategyTradebook(tradebookId, data) {
  return request({
    url: '/kylin/strategyTradebook/' + tradebookId,
    method: 'put',
    data: data
  })
}

// 删除策略交易登记簿
export function delStrategyTradebook(ids) {
  return request({
    url: '/kylin/strategyTradebook',
    method: 'delete',
    data: {
      ids: ids
    }
  })
}